<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<link href="/${initParam.context_root }/css/starter-template3.css" rel="stylesheet">

<div class="container">
	<div class="starter-template" style="padding-right: 40px; padding-top: 40px; padding-bottom: 80px">
		<div class="alert alert-success">이곳은 자유게시판입니다.</div>
		<br>
		<blockquote>
			<p>No${requestScope.comBoard.no }. &nbsp;&nbsp;&nbsp;${requestScope.comBoard.title }</p>
			<small>이 글을 쓴 회원은 "<a onclick="javascript:popUpProfileByNickname('${requestScope.comBoard.nickname }');">${requestScope.comBoard.nickname }</a>"입니다.&nbsp; 작성 일시는
				"${requestScope.comBoard.writedate}"이고, &nbsp;&nbsp;<cite title="Source Title">조회수는 "${ requestScope.comBoard.viewcount}"입니다.</cite>
			</small>
		</blockquote>
		<div class="panel panel-default">
			<div class="panel-body">${requestScope.comBoard.content }</div>
		</div>
		<div class="btn-group" style="float: right;">
			<button type="button" class="btn btn-primary"
				onclick="location.href='/${initParam.context_root  }/com/replyForm.do?no=${requestScope.comBoard.no}&page=${param.page}'">답글</button>
			
			<c:if test="${requestScope.comBoard.nickname==sessionScope.login_info.nickname}">
				<button type="button" class="btn btn-info"
					onclick="location.href='/${initParam.context_root  }/com/getModifyForm.do?no=${requestScope.comBoard.no}&page=${param.page}'">수정</button>
				<button type="button" class="btn btn-danger"
					onclick="location.href='/${initParam.context_root  }/com/deleteContent.do?no=${requestScope.comBoard.no}&page=${param.page}'">삭제</button>
			</c:if>
			<button type="button" class="btn btn-warning"
				onclick="location.href='/${initParam.context_root  }/com/list.do?no=${requestScope.comBoard.no}&page=${param.page}'">목록</button>
		</div>
	</div>
</div>

